<?php
/**
 * 功能: 帮助中心
 * User: WD
 * Date: 2019/1/7 0007
 * Time: 9:23
 */

namespace app\index\controller;
use think\Controller;
use think\Db;

class Help extends Controller{

    /**
     * 关于我们
     */
    public function us(){
        $res = Db::name('plat_intro')->find();
        if($res){
            return json(['msg'=>'请求成功','ok'=>true,'data'=>$res]);
        }else{
            return json(['msg'=>'暂无数据','ok'=>false]);
        }
    }


    /**
     *账户问题
     */
    public function account(){
        $res = Db::name('account')->find();
        if($res){
            return json(['msg'=>'请求成功','ok'=>true,'data'=>$res]);
        }else{
            return json(['msg'=>'暂无数据','ok'=>false]);
        }
    }

    /**
     *合伙人介绍
     */
    public function partner_intro(){
        $res = Db::name('partner_intro')->find();
        if($res){
            return json(['msg'=>'请求成功','ok'=>true,'data'=>$res]);
        }else{
            return json(['msg'=>'暂无数据','ok'=>false]);
        }
    }

    /**
     * 热门 常见问题展示
     */
    public function common(){
        $common = Db::name('common')->select();
        if($common){
            return json(['msg'=>'请求成功','ok'=>true,'data'=>$common]);
        }else{
            return json(['msg'=>'暂无数据','ok'=>false]);
        }
    }


}